var str = "A";  //打印字符
var len = 10;   //打印字符数
function for1(){
  for(var i=0; i<=len;i++){
    var char = "";
    for(var j=0;j<i;j++) {
      char = char + str;
    }
    console.log(char);
  }
}

for1();
